GtkEntry: plug a small memleak
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Oct 2014 01:48:11 +0000 (21:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Oct 2014 01:48:11 +0000 (21:48 -0400)
GtkEntry was leaking a pango attribute list, if one was set.

gtk/gtkentry.c

index ff30d16da631319d1bb0f2f516a719ee7f92f3a6..21d618e4f940183a8041647234b9c4877a5e28a5 100644 (file)
@@ -3034,6 +3034,9 @@ gtk_entry_finalize (GObject *object)
   if (priv->tabs)
     pango_tab_array_free (priv->tabs);
 
+  if (priv->attrs)
+    pango_attr_list_unref (priv->attrs);
+
   G_OBJECT_CLASS (gtk_entry_parent_class)->finalize (object);
 }